package com.example.avmanagerweb.Utils.fileUtil;

import java.io.File;

public class FileDeletionUtility {
    public static boolean deleteFile(String filePath) {
       File file = new File(filePath);
        if (file.exists()) {
           if (file.delete()) {
               System.out.println("文件删除成功: " + filePath);
               return true;
           } else {
               System.out.println("删除文件失败: " + filePath);
               return false;
           }
       } else {
           System.out.println("文件不存在: " + filePath);
           return false;
       }
   }
}